package cn.itcast.users.feign;

import cn.itcast.users.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("users-service")
public interface UsersClient {
    /**
     * 根据id查询用户信息
     * @param id
     * @return
     */
    @GetMapping("/user/user/getById/{id}")
    User getById(@PathVariable Long id);
}